const express = require('express');
const router = express.Router();
const controllers = require('../controllers/index');
const seoController = require('../controllers/seo')
const newsController = require('../controllers/news')

router.get('/', controllers.renderHome);
router.get('/about', controllers.renderAbout);
router.get('/news/:id', newsController.renderNewsDetail);
router.get('/sitemap.xml', seoController.getSitemap);

module.exports = router;